package com.example.mybatisplusdemo.util;

import java.util.regex.Pattern;

/**
 * @author Xu Haidong
 * @date 2018/3/29
 */
public class StrUtils {

    private StrUtils() {
    }

    public static boolean isInteger(String str) {
        Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");
        return pattern.matcher(str).matches();
    }
}
